package com.qiku.service;

import com.github.pagehelper.PageInfo;
import com.qiku.domin.PromotionAd;
import com.qiku.domin.PromotionAdVO;

import java.util.List;

public interface PromotionAdService {

    /**
     * 新增广告
     * @param promotionAd
     */
    public void savePromotionAd(PromotionAd promotionAd);

    /**
     * 修改广告
     * @param promotionAd
     */
    public void updatePromotionAd(PromotionAd promotionAd);


    /**
     * 修改回显广告信息
     * @param id
     * @return
     */
    public PromotionAd findPromotionAdById(Integer id);


    /**
     * 广告状态上下线
     * @param id
     */
    public void updatePromotionAdStatus(Integer id , int status);

    /**
     * 分页查询广告
     * @return
     */
    public PageInfo<PromotionAd> findAllPromotionAdByPage(PromotionAdVO promotionAdVO);

}
